package cn.rulian.car.outbill.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rulian.base.common.vo.Result;
import cn.rulian.car.outbill.service.OutBillFlowService;

/**
 * 车辆外出单--流转历史
 */

@Controller
@RequestMapping("/car/outbill/outBillFlow")
public class OutBillFlowController {
	
	@Autowired
	private OutBillFlowService service;
	
	/**
	 * 查询
	 */
	@RequestMapping("/listData")
	@ResponseBody
	public Result listData(Long outBillId) {
		//取当前用户
		Result result =new Result();
		result.setRows(service.findByOutBill_id(outBillId));
		return result;
	}
	
}
